//
//  MobStatHelper.m
//  DeyiLife
//
//  Created by zxin on 15/8/7.
//  Copyright (c) 2015年 Deyi. All rights reserved.
//

#import "MobStatHelper.h"
#import "UMMobClick/MobClick.h"

@implementation MobStatHelper

+ (void)setup {
    UMConfigInstance.appKey = @"58aceec11c5dd023fb000114";
    UMConfigInstance.channelId = @"App Store";
    [MobClick startWithConfigure:UMConfigInstance];//配置以上参数后调用此方法初始化SDK！
}

+ (void)logEvent:(NSString *)eventId {
    [MobClick event:(NSString *)eventId];
}

+ (void)pageAppear:(NSString *)pageName {
    [MobClick beginLogPageView:pageName];
}

+ (void)pageDisappear:(NSString *)pageName {
    [MobClick endLogPageView:pageName];
}

@end
